import request from '@/utils/request'

export function pageApiWarnRule(data) {
  return request({
    url: '/data/market/apiWarnRule/page',
    method: 'get',
    params: data
  })
}

export function getApiWarnRule(id) {
  return request({
    url: '/data/market/apiWarnRule/' + id,
    method: 'get'
  })
}

export function delApiWarnRule(id) {
  return request({
    url: '/data/market/apiWarnRule/' + id,
    method: 'delete'
  })
}

export function delApiWarnRules(ids) {
  return request({
    url: '/data/market/apiWarnRule/batch/' + ids,
    method: 'delete'
  })
}


export function addApiWarnRule (data) {
  return request({
    url: '/data/market/apiWarnRule',
    method: 'post',
    data: data
  })
}
